/*
 * @Descripttion: 
 * @version: 
 * @Author: by
 * @Date: 2021-09-01 10:59:11
 * @LastEditors: tc
 * @LastEditTime: 2022-03-10 16:23:27
 */
import request from '../utils/request'

const dashboardsApi = {}

//高德地图数据根据区域查询管辖水库
dashboardsApi.findByAllStations = (params) => {
    return request({
        url: '/scareen/equitmentRun/findRiskErr',
        method: 'get',
        params
    })
}
//查询水库设备数量
dashboardsApi.findByEquit = (params) => {
    return request({
        url: '/scareen/equitmentRun/findByEquit',
        method: 'get',
        params
    })
}
//查询水库风险等级数量
dashboardsApi.findByRisk = (params) => {
    return request({
        url: '/scareen/equitmentRun/findByRisk',
        method: 'get',
        params
    })
}

//根据设备状态查询设备信息
dashboardsApi.findByEqList = (params) => {
    return request({
        url: `/scareen/equitmentRun/findByEqList/${params}`,
        method: 'get',
        params:{}
    })
}
//根据风险等级查询设备信息
dashboardsApi.findRiskList = (params) => {
    return request({
        url: `/scareen/equitmentRun/findRiskList/${params}`,
        method: 'get',
        params:{}
    })
}
//根据设备编码查询设备信息
dashboardsApi.findByIdEq = (params) => {
    return request({
        url: '/scareen/equitmentRun/findByIdEq',
        method: 'get',
        params:params
    })
}
//根据设备名称查询设备信息
dashboardsApi.findByNameList = (params) => {
    return request({
        url: `/scareen/equitmentRun/findByNameList/${params}`,
        method: 'get',
        params:{}
    })
}
//根据地区统计数据
dashboardsApi.findAreaCount = (params) => {
    return request({
        url: `/scareen/equitmentRun/findAreaCount`,
        method: 'get',
        params:{}
    })
}
//摄像头图片接口
dashboardsApi.findByCamerg = (params) => {
    return request({
        url: `/scareen/equitmentRun/findByCamerg`,
        method: 'get',
        params:params
    })
}
//统计传感器状态信息
dashboardsApi.findSensorCount = (params) => {
    return request({
        url: `/scareen/equitmentRun/findSensorCount`,
        method: 'get',
        params:{}
    })
}
//播放视频
dashboardsApi.getvideo = (params) => {
    return request({
        url: `/scareen/equitmentRun/video`,
        method: 'get',
        params:params
    })
}
export default dashboardsApi